import requests

def search_first(name):
    #https://restapi.amap.com/v3/assistant/inputtips?_=1694826110124&key=376a7ed93c284721601126455d04b4cd&keywords=%E9%BE%99%E9%97%A8%E5%A3%B9%E5%93%81
    
    url = "https://restapi.amap.com/v3/assistant/inputtips"
    
    params = {
        "key": "376a7ed93c284721601126455d04b4cd",
        "keywords": name,
    }
    
    rsp = requests.get(url, params=params)
    
    rspJson = rsp.json()
    
    if not rspJson["tips"]:
        return ""
    
    tip = rspJson["tips"][0]
    
    return f"{tip['district']}{tip['address']}{tip['name']}"